package com.wpre.lotterysystem.controller.param;

import lombok.Data;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-21
 * Time: 13:27
 */
@Data
public class PageParam implements Serializable {
    //当前页
    private Integer currentPage = 1;
    //当前页数量
    private Integer pageSize = 10;

    //偏移量
    public Integer offset() {
        return (currentPage - 1) * pageSize;
    }
}
